import mountNativeElement from "./mountNativeElement";
import isFunction from "./isFunction";
import mountCompont from "./mountComponent"
export default function mountElement (virtualDOM, container,oldDOM){
    if(isFunction(virtualDOM)){
        // 组件
        mountCompont(virtualDOM, container,oldDOM)
    }else{
        // 普通元素
        mountNativeElement(virtualDOM, container,oldDOM)
    }
   
}